package com.dashu.authority.servie;

import java.util.List;
import java.util.Map;

import com.dashu.authority.entity.AuthorityOperate;
import com.dashu.authority.exception.AuthorityException;

public interface AuthorityOperateService extends BaseService<AuthorityOperate> {

	public List<AuthorityOperate> queryAllByExample(AuthorityOperate entity) throws AuthorityException;

	public Map<String, Object> insertEntity(AuthorityOperate entity) throws AuthorityException;

	public Map<String, Object> deleteByExample(AuthorityOperate entity) throws AuthorityException;

	// 根据系统id 和用户id 获取用户菜单资源权限
	public Map<Integer, Long> getAuthorityByUserAndType(Integer userId, String type, Integer applicationId,
			Integer operateId) throws AuthorityException;

	public Map<String, Object> insertMenuAuthority(String personnelType, Integer personnelId, Integer applicationId,
			String value) throws AuthorityException;

	public Map<Integer, Long> getAuthorityByUserAndResourcesType(String personnelType, Integer userId,
			String resourcesType, Integer applicationId) throws AuthorityException;
}
